const aqcs = [
  "在管道、设备上作业时，降低系统压力，作业点应为常压或微正压（监护人）",
  "在有毒介质的管道、设备上作业时，作业人员穿戴适合的个体防护装备（监护人）",
  "火灾爆炸危险场所，作业人员穿防静电工作服、工作鞋；作业时使用防爆灯具和防爆工具（监护人）",
  "火灾爆炸危险场所的气体管道，距作业地点30m内无其他动火作业（监护人）",
  "在强腐蚀性介质的管道、设备上作业时，作业人员已采取防范措施（监护人）",
  "介质温度较高、可能造成烫伤的情况下，作业人员已采取防烫措施（监护人）",
  "介质温度较低、可能造成冻伤的情况下，作业人员已采取冻伤措施（监护人）",
  "同一管道上未同时进行两处以上的盲板抽堵作业（监护人）",
  "其他相关特殊作业已办理相应安全作业票（监护人）",
  "作业现场四周已设警戒区（监护人）",
];
let formOptions = [
  {
    label: "作业申请部门",
    optionItems: [],
    prop: "jobApplyCompany",
    type: "input",
    required: true,
  },
  {
    label: "申请人",
    optionItems: [],
    prop: "sqr",
    type: "input",
    required: true,
  },
  {
    label: "作业类型",
    optionItems: [
      { value: "抽盲板", text: "抽盲板" },
      { value: "堵盲板", text: "堵盲板" },
    ],
    prop: "zylx",
    type: "radio",
    required: true,
  },
  {
    label: "作业实际开始时间",
    optionItems: [],
    prop: "sjzykssj",
    type: "datetime",
    required: true,
  },
  {
    label: "设备管道名称",
    optionItems: [],
    prop: "sbgdmc",
    type: "input",
    required: true,
  },
  {
    label: "介质",
    optionItems: [
      {
        value: "柴油",
        text: "柴油",
      },
      {
        value: "汽油",
        text: "汽油",
      },
    ],
    prop: "jz",
    type: "select",
    required: true,
  },
  {
    label: "温度",
    optionItems: [],
    prop: "wd",
    type: "input",
    required: true,
  },
  {
    label: "压力",
    optionItems: [],
    prop: "yl",
    type: "input",
    required: true,
  },
  {
    label: "材质",
    optionItems: [],
    prop: "cz",
    type: "input",
    required: true,
  },
  {
    label: "规格",
    optionItems: [],
    prop: "gg",
    type: "input",
    required: true,
  },
  {
    label: "编号",
    optionItems: [],
    prop: "bh",
    type: "input",
    required: true,
  },
  {
    label: "作业人",
    optionItems: [],
    prop: "zyr",
    type: "zyry",
    required: true,
    multiple: true,
  },
  {
    label: "监护人",
    optionItems: [],
    prop: "zyjhr",
    type: "zyry",
    required: false,
  },

  {
    label: "作业单位",
    optionItems: [],
    prop: "zydw",
    type: "input",
    required: true,
  },

  {
    label: "作业单位负责人",
    optionItems: [],
    prop: "zydwfzr",
    type: "input",
    required: true,
  },
  {
    label: "关联的其他特殊作业及安全作业票编号：",
    optionItems: [],
    prop: "glqtzyp",
    type: "glzyp",
    required: false,
  },

  {
    label: "",
    optionItems: [],
    prop: "mbbh",
    type: "input",
    required: false,
  },

  {
    label: "风险辨识结果",
    optionItems: [
      {
        value: "物体打击",
        text: "物体打击",
      },
      {
        value: "机械伤害",
        text: "机械伤害",
      },
      {
        value: "起重伤害",
        text: "起重伤害",
      },
      {
        value: "触电",
        text: "触电",
      },
      {
        value: "火灾",
        text: "火灾",
      },
      {
        value: "高处坠落",
        text: "高处坠落",
      },

      {
        value: "淹溺",
        text: "淹溺",
      },
      {
        value: "交叉作业",
        text: "交叉作业",
      },
      {
        value: "灼烫",
        text: "灼烫",
      },
      {
        value: "容器爆炸",
        text: "容器爆炸",
      },
      {
        value: "其他爆炸",
        text: "其他爆炸",
      },
      {
        value: "中毒窒息",
        text: "中毒窒息",
      },
      {
        value: "电磁辐射",
        text: "电磁辐射",
      },
      {
        value: "其他风险",
        text: "其他风险",
      },
    ],
    prop: "risk",
    type: "checkbox",
    required: false,
    rules: [],
  },
];
aqcs.forEach((item, index) => {
  formOptions.push({
    label: `${index + 1}.${item}`,
    optionItems: [
      {
        value: "是",
        text: "涉及",
      },
      {
        value: "否",
        text: "不涉及",
      },
    ],
    prop: `yesOrNo${index + 1}`,
    type: "labelradio",
    required: false,
    rules: [],
  });
  // formOptions.push({
  //   label: "电子签名",
  //   optionItems: [],
  //   type: "slot",
  //   // prop: `qianming${index + 1}`,
  //   prop: `qianming1`,
  // });
});
formOptions = [
  ...formOptions,
  {
    label: "其他安全措施",
    optionItems: [],
    prop: "qtaqcs",
    type: "qtaqcs",
    multiple: true,
    required: false,
  },
  {
    label: "编制人",
    optionItems: [],
    prop: "bzr",
    type: "input",
    required: false,
  },
];

const longLabelSlots = [
  "yesOrNo1",
  "yesOrNo2",
  "yesOrNo3",
  "yesOrNo4",
  "yesOrNo5",
  "yesOrNo6",
  "yesOrNo7",
  "yesOrNo8",
  "yesOrNo9",
  "yesOrNo10",
  "yesOrNo11",
  "yesOrNo12",
  "yesOrNo13",
  "yesOrNo14",
  "yesOrNo15",
];
const emptys = [
  "qianming1",
  "yjqm1",
  "yjqm2",
  "yjqm3",
  "yjqm4",
  "qianmingDt1",
  "qianmingDt2",
  "qianmingDt3",
  "qianmingDt4",
  "aqjdr",
  "jsjdr",
  "jsjdr2",
  "jsjdr3",
  "bmjhr",
  "fhjhr",
  "sjzykssj",
  "jobDate",
  "glqtzyp",
  "jobApplyDate",
  "img1",
];
const options = {
  formOptions,
  longLabelSlots,
  emptys,
};
export default options;
